package edu.cuit.canary.selection;

public class SwitchDemo {

    public static void main(String[] args) {
        //int day = (int)(Math.random() * 7);
        int day = 1;
        switch(day) {
        case 0:
            System.out.println("星期日");
            break;
        case 1:
            System.out.println("星期一");
            break;
        case 2:
            System.out.println("星期二");
        case 3:
            System.out.println("星期三");
        case 4:
            System.out.println("星期四");
        case 5:
            System.out.println("星期五");
            break;
        case 6:
            System.out.println("星期六");
            break;
        default:
            System.out.println("非法值");
        }
    }

}